using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Stand_detailMap : EntityTypeConfiguration<Stand_detail>
    {
        public Stand_detailMap()
        {
            // Primary Key
            this.HasKey(t => t.StandID);

            // Properties
            this.Property(t => t.To_Dia_ID)
                .HasMaxLength(50);

            this.Property(t => t.To_Len_ID)
                .HasMaxLength(50);

            this.Property(t => t.Create_pepole)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("Stand_detail");
            this.Property(t => t.StandID).HasColumnName("StandID");
            this.Property(t => t.To_Stand_ID).HasColumnName("To_Stand_ID");
            this.Property(t => t.To_Dia_ID).HasColumnName("To_Dia_ID");
            this.Property(t => t.To_Len_ID).HasColumnName("To_Len_ID");
            this.Property(t => t.HospitalID).HasColumnName("HospitalID");
            this.Property(t => t.Drop_state).HasColumnName("Drop_state");
            this.Property(t => t.Create_time).HasColumnName("Create_time");
            this.Property(t => t.Create_pepole).HasColumnName("Create_pepole");
        }
    }
}
